package cn.cs.service;

import cn.cs.common.Dto;
import cn.cs.common.Page;
import cn.cs.pojo.UserAddress;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface UserAddressService {

    public List<UserAddress> getUserAddressListById(Map<String, Object> param)throws Exception;

    public List<UserAddress> getUserAddressById(String userId)throws Exception;

    public UserAddress getUserAddressByOnceId(String userId)throws Exception;

    public List<UserAddress> getUserAddressListByMap(Map<String, Object> param)throws Exception;

    public Integer getUserAddressCountByMap(Map<String, Object> param)throws Exception;

    public Integer itriptxAddUserAddress(UserAddress userAddress)throws Exception;

    public Integer itriptxModifyUserAddress(UserAddress userAddress)throws Exception;

    public Integer modifyUserAddressByUserId(UserAddress userAddress)throws Exception;

    public void itriptxDeleteUserAddressById(String id)throws Exception;

    public Page<UserAddress> queryUserAddressPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    public Dto registerAddress(HttpServletRequest request) throws Exception;

    public Dto updateUserAddress(HttpServletRequest request)throws Exception;

    public Dto updateAddressTypeId(HttpServletRequest request)throws Exception;

}
